
<%@ page import="duylinh.NhaCungUng" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'nhaCungUng.label', default: 'NhaCungUng')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-nhaCungUng" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="list-nhaCungUng" class="content scaffold-list" role="main">

            <div class="marginLeftLarge marginTopLarge marginBottomLarge quoteBig">
                <g:message code="default.list.label.nhaCungUng" />
            </div>

			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<table>
				<thead>
					<tr>

                        <g:sortableColumn property="ten" title="${message(code: 'nhaCungUng.ten.label', default: 'Ten')}" />

                        <g:sortableColumn property="diaChi" title="${message(code: 'nhaCungUng.diaChi.label', default: 'Dia Chi')}" />

                        <g:sortableColumn property="mst" title="${message(code: 'nhaCungUng.mst.label', default: 'Mst')}" />

                        <g:sortableColumn property="cachThanhToan" title="${message(code: 'nhaCungUng.cachThanhToan.label', default: 'Cach Thanh Toan')}" />


                        <th>
                            <g:message code="sanPham.thaoTac.label"  />
                        </th>
					</tr>
				</thead>
				<tbody>
				<g:each in="${nhaCungUngInstanceList}" status="i" var="nhaCungUngInstance">
					<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
					
						<td>
                            <g:link action="show" id="${nhaCungUngInstance.id}">
                                 ${fieldValue(bean: nhaCungUngInstance, field: "ten")}
                            </g:link>
                        </td>
					
						<td>${fieldValue(bean: nhaCungUngInstance, field: "diaChi")}</td>

                        <td>${fieldValue(bean: nhaCungUngInstance, field: "mst")}</td>

                        <td>${fieldValue(bean: nhaCungUngInstance, field: "cachThanhToan")}</td>

                        <td>
                            <g:link  action="edit"  params="['id':nhaCungUngInstance.id]">
                                <g:message code="default.button.edit.label"></g:message>
                            </g:link>
                        </td>

					</tr>
				</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${nhaCungUngInstanceTotal}" />
			</div>
		</div>
	</body>
</html>
